// 获取验证码方法
// eslint-disable-next-line space-before-function-paren
export function getRandom(n, m) {
  n = Number(n)
  m = Number(m)
  if (n > m) {
    var temp = n
    n = m
    m = temp
  }
  return Math.floor(Math.random() * (m - n) + n)
}
